import roles from './roles'
import permissions from './permissions'

const install = function(Vue) {
  Vue.directive('roles', roles)
  Vue.directive('permissions', permissions)
}

if (window.Vue) {
  window['roles'] = roles
  window['permissions'] = permissions
  Vue.use(install); // eslint-disable-line
}

// roles.install = install
export default install
